fix(macos): align custom theme output with runtime schema - #284
Open
rwang23 wants to merge 1 commit into
Open
Conversation
4 tasks
rwang23
marked this pull request as ready for review
July 27, 2026 18:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
write-theme.mjswith the runtime loader's 120-code-point limits.art.taskMode=fullvalue and lock the writer-to-loader contract with a regression test.Type / 类型
Platform / 平台
Self-check / 自测
macOS (when code under
macos/changes)macos/tests/run-tests.shpassed / 已通过macos/scripts/doctor-macos.shverify-dream-skin-macos.shor Desktop VerifyUser-facing / 用户可见变更
macos/CHANGELOG.md(andmacos/VERSIONif release-worthy) / 已更新 changelog(发版时再 bump VERSION)Security / 安全
127.0.0.1) where applicable / CDP 仍仅本机回环(如适用)Notes / 补充
The writer accepted a 160-code-point tagline, only 80 code points of quote text,
and rejected
full, while the runtime accepted a 120/120/full contract.Validated on
main@611c101with:node --check macos/scripts/write-theme.mjs— passednode --test macos/tests/write-theme-contract.test.mjs— passedgit diff --check— passedThe added test writes a theme, reads its JSON, and loads it through the runtime.
macOS Desktop verification, Doctor, Swift/Xcode coverage, and a full macOS host
suite remain CI or device gates.
Tracking issue / 追踪 Issue
Closes #295